package com.example.scoprimi;


//import com.example.scoprimi.util.SystemUiHider;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Typeface;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.TextView;


	public class Home extends Activity implements View.OnClickListener,DialogInterface.OnClickListener{
		    public static final String PREFS_NAME = "MyPrefsFile1";
		    private Button bvaluta;
			private Button btrova;

		    /** Called when the activity is first created. */
		    @Override
		    public void onCreate(Bundle savedInstanceState) {
		        super.onCreate(savedInstanceState);
		        setContentView(R.layout.home);
		        bvaluta=(Button)findViewById(R.id.bottone1);
		        bvaluta.setOnClickListener(this);
		        btrova=(Button)findViewById(R.id.bottone2);
		        btrova.setOnClickListener(this);
		        Typeface font = Typeface.createFromAsset(getAssets(), "Greyscale.ttf");
		        
		        TextView text = (TextView) findViewById(R.id.testohome);
		        text.setTypeface(font);
		        Button txt = (Button) findViewById(R.id.bottone1);  
		        txt.setTypeface(font);
		        Button txt1 = (Button) findViewById(R.id.bottone2); 
		        txt1.setTypeface(font);
		        
		        Button next = (Button) findViewById(R.id.bottone1);
		        next.setOnClickListener(new View.OnClickListener() {
		            public void onClick(View view) {
		                Intent myIntent = new Intent(view.getContext(), Valuta.class);
		                startActivityForResult(myIntent, 0);
		            }
		        });
		       
		        Button next1 = (Button) findViewById(R.id.bottone2);
		        next1.setOnClickListener(new View.OnClickListener() {
		            public void onClick(View view) {
		                Intent myIntent = new Intent(view.getContext(), Trova.class);
		                startActivityForResult(myIntent, 0);
		            }

		        });
		        
		        
		    }
		    
		    @Override
			public void onClick(DialogInterface dialog, int which) {
				// TODO Auto-generated method stub
				
			}

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				
			}
			
		    
		}

